# ----------------------------------------------------------------------------- #
# This is a decompile of the iscript.bin file 'data\scripts\iscript.bin'
# created on: Fri Aug 20 18:44:53 2021
# ----------------------------------------------------------------------------- #

# ----------------------------------------------------------------------------- #
# This header is used by images.dat entries:
# 061 Cerebrate (zerg\UCereb.grp)
.headerstart
IsId           	38
Type           	20
Init           	CerebrateInit
Death          	CerebrateDeath
GndAttkInit    	[NONE]
AirAttkInit    	[NONE]
Unused1        	[NONE]
GndAttkRpt     	[NONE]
AirAttkRpt     	[NONE]
CastSpell      	[NONE]
GndAttkToIdle  	[NONE]
AirAttkToIdle  	[NONE]
Unused2        	[NONE]
Walking        	[NONE]
WalkingToIdle  	[NONE]
SpecialState1  	[NONE]
SpecialState2  	[NONE]
AlmostBuilt    	CerebrateAlmostBuilt
Built          	CerebrateBuilt
Landing        	[NONE]
LiftOff        	[NONE]
IsWorking      	CerebrateBuilt
WorkingToIdle  	CerebrateBuilt
WarpIn         	[NONE]
.headerend
# ----------------------------------------------------------------------------- #

CerebrateInit:
	imgul          	62 0 0	# CerabrateShad (zerg\zucShad.grp)
	playfram       	0
	goto           	CerebrateLocal00

CerebrateLocal00:
	wait           	125
	goto           	CerebrateLocal00

CerebrateDeath:
	playsnd        	774	# Zerg\Bldg\ZBldgDth.WAV
	imgol          	60 0 0	# ZergBuildingDeath (thingy\zBldDthS.grp)
	wait           	3
	lowsprul       	186 0 0	# ZergBuildingRubbleLarge (thingy\ZRubbleS.grp)
	wait           	1
	end            	

CerebrateAlmostBuilt:
	imgol          	108 0 0	# ZergBuildingSpawnMedium (zerg\zSpawn02.grp)
CerebrateBuilt:
	playfram       	0
	wait       	1
	playfram       	1
	wait           	1
	playfram       	2
	wait           	1
	playfram       	3
	wait           	1
	playfram       	4
	wait           	1
	playfram       	5
	wait           	1
	playfram       	6
	wait           	1
	playfram       	7
	wait           	1
	playfram       	8
	wait           	1
	playfram       	9
	wait           	1
	playfram       	10
	wait           	1
	playfram       	11
	wait           	1
	playfram       	12
	wait           	1
	playfram       	13
	wait           	1
	playfram       	14
	wait           	1
	playfram       	15
	wait           	1
	playfram       	16
	wait           	1
	playfram       	17
	wait           	1
	playfram       	18
	wait           	1
	playfram       	19
	wait           	1
	goto           	CerebrateBuilt

